<div class="hidden">
	<div id="simexpression_form" class="modal">
		<div class="modal_header">
			<strong>Add Instruction</strong>
		</div>
		<div class="clear"></div>
		<div class="modal_form">
                    <input type="hidden" id="insert_pos" value="0"/>
			<div id="sitype" class="input_box">
				<label>Type:</label>
				<span class="helptext">Choose type of the instruction</span>
				<select name="itype">
					<option value="undefined" selected="selected" >select</option>
					<option value="foreach">foreach</option>
					<option value="invocation">invocation</option>
				</select>
			</div>
                        <div id="foreach" class="input_box">
				<label for="foreach_procedures" >Procedures:</label>
				<span class="helptext"> Choose the procedures</span>
				<select id="foreach_procedures" name="foreach_procedures" multiple="multiple">
                                        {% for p in request.session.sgx_program.sgx.procedure_defs %}
                                            <option value="{{p.procedure_name}}">{{p.procedure_name}}</option>
                                        {% endfor %}
				</select>
			</div>
			<div id="invocation" class="input_box">
				<label>Procedure:</label>
				<span class="helptext">Choose the procedure</span>
				<select id="invocation_procedure" name="invocation_procedure">
					<option value="undefined" selected="selected" >select</option>
                                        {% for p in request.session.sgx_program.sgx.procedure_defs %}
                                            <option value="{{p.procedure_name}}">{{p.procedure_name}}</option>
                                        {% endfor %}
				</select>
			</div>

			<div id="control" class="input_box">
                                <button id="next">Save & Next</button>
				<button id="ok">Finish</button>
				<button id="cancel">Cancel</button>
			</div>
		</div> 
	</div> 
</div>